package com.bp.hearthealth.pulse.lnapps.bp_db.bp_project

import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.bp.hearthealth.pulse.lnapps.bp_db.bp_bloodpressure.BloodPressure
import com.bp.hearthealth.pulse.lnapps.bp_db.bp_bloodpressure.BloodPressureData
import com.bp.hearthealth.pulse.lnapps.bp_db.bp_bloodpressure.BpBloodPressureDao
import com.bp.hearthealth.pulse.lnapps.bp_db.bp_heartrate.BpHeartRateBean
import com.bp.hearthealth.pulse.lnapps.bp_db.bp_heartrate.BpHeartRateDao
import com.bp.hearthealth.pulse.lnapps.bp_db.bp_user.BpUser
import com.bp.hearthealth.pulse.lnapps.bp_db.bp_user.BpUserDao

/**
 * @author isnoam
 * @package_name AppDatabase
 * @description：
 */
@TypeConverters(BpConverters::class)
@Database(
    entities = [BpUser::class, BloodPressure::class, BloodPressureData::class, BpHeartRateBean::class],
    version = BpDbConstants.databaseVersion,
    exportSchema = false
)
abstract class BpAppDatabase : RoomDatabase() {
    abstract fun userDao(): BpUserDao
    abstract fun heartRateDao(): BpHeartRateDao
    abstract fun bloodPressure(): BpBloodPressureDao
}
